package com.ruoyi.system.service.college.impl;

import java.util.List;

import com.ruoyi.system.domain.college.Statistics.UndergraduateDegreeStatistics;
import com.ruoyi.system.mapper.award.research.UndergraduateDegreeStatisticsMapper;
import com.ruoyi.system.service.college.IUndergraduateDegreeStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 本科生招生与学位授予统计Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-24
 */
@Service
public class UndergraduateDegreeStatisticsServiceImpl implements IUndergraduateDegreeStatisticsService
{
    @Autowired
    private UndergraduateDegreeStatisticsMapper undergraduateDegreeStatisticsMapper;

    /**
     * 查询本科生招生与学位授予统计
     * 
     * @param id 本科生招生与学位授予统计主键
     * @return 本科生招生与学位授予统计
     */
    @Override
    public UndergraduateDegreeStatistics selectUndergraduateDegreeStatisticsById(Integer id)
    {
        return undergraduateDegreeStatisticsMapper.selectUndergraduateDegreeStatisticsById(id);
    }

    /**
     * 查询本科生招生与学位授予统计列表
     * 
     * @param undergraduateDegreeStatistics 本科生招生与学位授予统计
     * @return 本科生招生与学位授予统计
     */
    @Override
    public List<UndergraduateDegreeStatistics> selectUndergraduateDegreeStatisticsList(UndergraduateDegreeStatistics undergraduateDegreeStatistics)
    {
        return undergraduateDegreeStatisticsMapper.selectUndergraduateDegreeStatisticsList(undergraduateDegreeStatistics);
    }

    /**
     * 新增本科生招生与学位授予统计
     * 
     * @param undergraduateDegreeStatistics 本科生招生与学位授予统计
     * @return 结果
     */
    @Override
    public int insertUndergraduateDegreeStatistics(UndergraduateDegreeStatistics undergraduateDegreeStatistics)
    {
        return undergraduateDegreeStatisticsMapper.insertUndergraduateDegreeStatistics(undergraduateDegreeStatistics);
    }

    /**
     * 修改本科生招生与学位授予统计
     * 
     * @param undergraduateDegreeStatistics 本科生招生与学位授予统计
     * @return 结果
     */
    @Override
    public int updateUndergraduateDegreeStatistics(UndergraduateDegreeStatistics undergraduateDegreeStatistics)
    {
        return undergraduateDegreeStatisticsMapper.updateUndergraduateDegreeStatistics(undergraduateDegreeStatistics);
    }

    /**
     * 批量删除本科生招生与学位授予统计
     * 
     * @param ids 需要删除的本科生招生与学位授予统计主键
     * @return 结果
     */
    @Override
    public int deleteUndergraduateDegreeStatisticsByIds(Integer[] ids)
    {
        return undergraduateDegreeStatisticsMapper.deleteUndergraduateDegreeStatisticsByIds(ids);
    }

    /**
     * 删除本科生招生与学位授予统计信息
     * 
     * @param id 本科生招生与学位授予统计主键
     * @return 结果
     */
    @Override
    public int deleteUndergraduateDegreeStatisticsById(Integer id)
    {
        return undergraduateDegreeStatisticsMapper.deleteUndergraduateDegreeStatisticsById(id);
    }
}
